echo on

echo Making executable file...
Makespec.py front.py --name dshogi --icon dshogi.ico --onefile --windowed
Build.py dshogi.spec

set DSDIR=dshogi-release-%DATE:/=%-%TIME::=%
echo Copying zipped file to %DSDIR%...
mkdir %DSDIR%
copy dshogi.exe %DSDIR%
copy gpl-2.0.txt %DSDIR%
copy README %DSDIR%
mkdir %DSDIR%\images
copy dshogi\images\*.png %DSDIR%\images

echo Cleaning...
del /F dshogi.spec warndshogi.txt dshogi.exe
rmdir /S /Q builddshogi

echo Finish.
pause
